# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-inspyred
_pkgorig=inspyred
_commit=5fa8224f0c81c74e3c6183457f760af854ad72fb
pkgver=1.0.1
pkgrel=0
pkgdesc="A framework for creating bio-inspired computational intelligence algorithms in Python"
url="https://github.com/aarongarrett/inspyred"
arch="noarch !riscv64" #py3-matplotlib
license="MIT"
depends="python3 py3-numpy py3-matplotlib py3-click"
makedepends="py3-setuptools"
checkdepends="python3-dev py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/aarongarrett/$_pkgorig/archive/$_commit/$_pkgorig-$_commit.tar.gz"
builddir="$srcdir/$_pkgorig-$_commit"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
85111498c90f16d5f1124743168f68eaab3495809c40cac6b8530b08e47652045cc8ad043657f77b172561f7e570d5f42594adc702d960df6e992d6769baeeba  py3-inspyred-1.0.1.tar.gz
"
